am_flags = ['-DWEBRTC_APM_DEBUG_DUMP=1']

webrtc_audio_mixer_sources = [
'audio_frame_manipulator.cc',
'audio_mixer_impl.cc',
# 'audio_mixer_test.cc',
'default_output_rate_calculator.cc',
'frame_combiner.cc',
'gain_change_calculator.cc',
#'sine_wave_generator.cc',
]

webrtc_audio_mixer_include_headers = [
  'audio_mixer_impl.h',
  'default_output_rate_calculator.h',
]

libwebrtc_audio_mixer = static_library(am_project_name,
    webrtc_audio_mixer_sources,
    dependencies: [
      base_dep,
      api_dep,
      system_wrappers_dep,
      audio_dep,
      common_audio_dep,
      webrtc_audio_processing_dep,
    ] + common_deps,
    link_with: extra_libs,
    include_directories: webrtc_inc,
    c_args: common_cflags + apm_flags,
    cpp_args: common_cxxflags + apm_flags,
#    soversion: am_minor_version,
#    install: true
)

webrtc_audio_mixer_dep = declare_dependency(
    link_with: libwebrtc_audio_mixer,
    include_directories: webrtc_inc,
    version: am_version
)